package cn.wen.springframework.test.event;import cn.wen.springframework.context.ApplicationListener;import cn.wen.springframework.context.event.ContextClosedEvent;/** * @ClassName: ContextClosedEventListener * @Author: 小飞 * @Date: 2023/3/28 22:26 * @Description: 事件关闭类 */public class ContextClosedEventListener implements ApplicationListener<ContextClosedEvent> {    @Override    public void onApplicationEvent(ContextClosedEvent event) {        System.out.println("关闭事件：" + this.getClass().getName());    }}